#include"bits/stdc++.h"
using namespace std;
int original_number,changed_number,abs_number;
int main()
{
	cin>>original_number;
	abs_number=abs(original_number);
	if(original_number==0)
	{
		changed_number=0;
	}
	else
	{
		while(abs_number)
		{
			changed_number=changed_number*10+abs_number%10;
			abs_number/=10;
		}
	}
	if(original_number<0)
	{
		cout<<"-";
	}
	cout<<changed_number;
}
